package xing.application.service.ui;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xing.domain.ui.Banner;
import xing.repository.ui.BannerRepository;

import java.util.List;

/*******************************************************************************************
 * 类描述：  
 *
 * @author: dustin
 * @date: 2017-11-09 09:53
 * @Description: webchat首页service
 * @version 1.0
 *
 *
 * Version    Date       ModifiedBy                 Content  
 * -------- ---------    ----------         ------------------------  
 * 1.0      2017/11/9     dst                               
 *******************************************************************************************
 */
@Service
public class HomeService {
    @Autowired
    private BannerRepository bannerRepository;

    /**
     * @Description:获取banner列表
     * @param:   * @param null
     * @Author: dustin
     * @Date: 2017-11-09 10:03
     */
    public List<Banner> getBannerList(){
        List<Banner> list=bannerRepository.findAll();
        return list;
    }

}
